<template>
  <div>嵌套路由</div>
  <div>{{ message }}</div>
  <router-view></router-view>
</template>

<script>
export default {
  name: "NestingRouter",
  data() {
    return {
      message: null
    }
  },
  mounted() {
    this.$nextTick(() => {
      this.message = this.$route.params.productName
    })
  },
}
</script>

<style scoped>

</style>